package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealMapper extends BaseMapper<Setmeal> {

    /**
     * 分页条件查询
     * @param setmealPage
     * @param name
     * @return
     */
    Page<SetmealDto> pageMathSetmeal(Page<SetmealDto> setmealPage, String name);

    SetmealDto findById(Long id);


    //分类查菜品
    List<DishDto> dishList(Long id);
}


